const path = require('path');
function resolve(dir) {
    return path.join(__dirname, dir);
}

module.exports = {
    chainWebpack: (config) => {
        config.resolve.alias.set('@', resolve('./src')).set('@c', resolve('src/components')).set('@v', resolve('src/views')).set('@a', resolve('src/assets'));
        config.resolve.symlinks(true);
    },
    devServer: {
        open: true, // 让浏览器自动打开
        port: 8083,   // 端口号
        compress:true,
        disableHostCheck:true
    }
}


//   npm run  serve   启动
//  在package.json  里面查看 scripts的配置
